package bomberman.runable;

import bomberman.model.Bom;
import bomberman.util.Constants;

/**
 * 炸弹线程，放置一个炸弹新开一个线程控制爆炸
 * @author EX-FUHUICHAO001
 * 2016年9月22日17:49:04
 */
public class MyRunableBom implements Runnable {

	private Bom bom;
	
	public MyRunableBom(Bom bom){
		this.bom = bom;
	}
	
	public void run() {
		try {
			Thread.sleep(Constants.BOM_SLEEP_TIME);
			bom.boom();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}


	public Bom getBom() {
		return bom;
	}


	public void setBom(Bom bom) {
		this.bom = bom;
	}
	
}
